package com.vichat.user.entity;


import javax.persistence.*;
import java.util.Date;

/***************
 *author: autogen
 *version: 2018-10-15 17:49:15.402
 */
@Entity
@Table(name = "sys_busi_record",catalog = "userdb")
public class SysBusiRecord implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "sys_busi_record";

    /**日志编号 */
	public static final String ALIAS_LOG_ID = "log_id";
    /**操作用户编号 */
	public static final String ALIAS_UID = "uid";
    /**操作用户名称 */
	public static final String ALIAS_USER_NAME = "user_name";
    /** */
	public static final String ALIAS_PARTY_ID = "party_id";
    /**部门编号 */
	public static final String ALIAS_ORG_ID = "org_id";
    /**部门编码 */
	public static final String ALIAS_ORG_CODE = "org_code";
    /**部门名称 */
	public static final String ALIAS_ORG_NAME = "org_name";
    /**操作类型 */
	public static final String ALIAS_OPED_TYPE = "oped_type";
    /**被操作用户编号 */
	public static final String ALIAS_OPED_UID = "oped_uid";
    /**被操作用户名称 */
	public static final String ALIAS_OPED_USER_NAME = "oped_user_name";
    /**操作信息 */
	public static final String ALIAS_OPED_INFO = "oped_info";
    /**备注信息 */
	public static final String ALIAS_REMARK = "remark";
    /**操作IP */
	public static final String ALIAS_UIP = "uip";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "log_id", unique = true, nullable = false)
    public Long logId;

 	@Column(name = "uid")
    public Long uid;

 	@Column(name = "user_name")
    public String userName;

 	@Column(name = "party_id")
    public Long partyId;

 	@Column(name = "org_id")
    public Long orgId;

 	@Column(name = "org_code")
    public String orgCode;

 	@Column(name = "org_name")
    public String orgName;

 	@Column(name = "oped_type")
    public String opedType;

 	@Column(name = "oped_uid")
    public Long opedUid;

 	@Column(name = "oped_user_name")
    public String opedUserName;

 	@Column(name = "oped_info")
    public String opedInfo;

 	@Column(name = "remark")
    public String remark;

 	@Column(name = "uip")
    public String uip;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;






	public Long getLogId() {
		return this.logId;
	}

	public void setLogId(Long value) {
		this.logId = value;
	}

	public Long getUid() {
		return this.uid;
	}

	public void setUid(Long value) {
		this.uid = value;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String value) {
		this.userName = value;
	}

	public Long getPartyId() {
		return this.partyId;
	}

	public void setPartyId(Long value) {
		this.partyId = value;
	}

	public Long getOrgId() {
		return this.orgId;
	}

	public void setOrgId(Long value) {
		this.orgId = value;
	}

	public String getOrgCode() {
		return this.orgCode;
	}

	public void setOrgCode(String value) {
		this.orgCode = value;
	}

	public String getOrgName() {
		return this.orgName;
	}

	public void setOrgName(String value) {
		this.orgName = value;
	}

	public String getOpedType() {
		return this.opedType;
	}

	public void setOpedType(String value) {
		this.opedType = value;
	}

	public Long getOpedUid() {
		return this.opedUid;
	}

	public void setOpedUid(Long value) {
		this.opedUid = value;
	}

	public String getOpedUserName() {
		return this.opedUserName;
	}

	public void setOpedUserName(String value) {
		this.opedUserName = value;
	}

	public String getOpedInfo() {
		return this.opedInfo;
	}

	public void setOpedInfo(String value) {
		this.opedInfo = value;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String value) {
		this.remark = value;
	}

	public String getUip() {
		return this.uip;
	}

	public void setUip(String value) {
		this.uip = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}



	public SysBusiRecord() {
	}

	public SysBusiRecord(boolean qryflag) {
	    if(qryflag){
	    		this.logId = null;
				this.uid = null;
				this.userName = null;
				this.partyId = null;
				this.orgId = null;
				this.orgCode = null;
				this.orgName = null;
				this.opedType = null;
				this.opedUid = null;
				this.opedUserName = null;
				this.opedInfo = null;
				this.remark = null;
				this.uip = null;
				this.createTime = null;
			    }
	}


	public SysBusiRecord(
	    Long inLogId,
	    Long inUid,
	    String inUserName,
	    Long inPartyId,
	    Long inOrgId,
	    String inOrgCode,
	    String inOrgName,
	    String inOpedType,
	    Long inOpedUid,
	    String inOpedUserName,
	    String inOpedInfo,
	    String inRemark,
	    String inUip,
		java.util.Date inCreateTime
	 ) {
		super();
				this.logId = inLogId;
				this.uid = inUid;
				this.userName = inUserName;
				this.partyId = inPartyId;
				this.orgId = inOrgId;
				this.orgCode = inOrgCode;
				this.orgName = inOrgName;
				this.opedType = inOpedType;
				this.opedUid = inOpedUid;
				this.opedUserName = inOpedUserName;
				this.opedInfo = inOpedInfo;
				this.remark = inRemark;
				this.uip = inUip;
				this.createTime = inCreateTime;
			}

	@Transient
	private Date startTime;
	@Transient
	private Date endTime;

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}



}

